\ProvidesClass{document}
\LoadClass[11pt,a4paper,twoside]{article}

\usepackage{graphicx}
\usepackage{german}
\usepackage{moreverb}
\usepackage{fancyhdr}
\usepackage{ifthen}
\usepackage{pifont}
\usepackage{amsmath,amssymb}
\usepackage[utf8]{inputenc}
\usepackage{color}
	\definecolor{red}{rgb}{1,0,0}
\usepackage [colorlinks=true, linkcolor=black, citecolor=black,
             raiselinks=true, urlcolor=blue] {hyperref}
\usepackage{multicol}
\usepackage[noindentafter]{titlesec}
\usepackage{caption}
\usepackage{longtable}
\usepackage{ragged2e, tabularx}
\newcolumntype{Y}{>{\RaggedRight\arraybackslash}X}

\usepackage{float}
\restylefloat{figure}
\restylefloat{table}

\setlength{\parindent}{0ex}
\setlength{\parskip}{1ex}

\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{4}

\titleformat{\paragraph}[hang]{\bf}{\thetitle\quad}{0pt}{}						
\titlespacing{\paragraph}{0pt}{1em}{0.5em} 


\pagestyle{empty}
    \fancyhead{} %clear all fields
    \fancyhead[LO,RE]{Projektbericht: Modulares Produktionssystem \\ \textbf{Mechatronik}}
    \fancyhead[RO,LE]{\leftmark \\ \rightmark}
    \fancyfoot{} %clear all fields
    \fancyfoot[RO,LE]{\thepage}

\setlength{\headheight}{14pt}
\setlength{\textwidth}{16cm}
\setlength{\topmargin}{-1cm}
\setlength{\evensidemargin}{0cm}
\setlength{\oddsidemargin}{0cm}
\setlength{\textheight}{24cm}

\newcommand{\TODO}[1]%
{
	\begin{minipage}[h!]{\textwidth}
		\vspace*{1cm}    
		\textcolor{red}{\textbf{\textit{TODO: #1}}}
		\vspace*{1cm}
	\end{minipage}
}

\newcommand{\ApplicationSubject}[7]%
{
	\paragraph{#1}
	\paragraph*{Akteure}
		#2
	\paragraph*{Vorbedingungen}
		#3
	\paragraph*{Regulärer Ablauf}
		#4 
	\paragraph*{Varianten}
		#5 
	\paragraph*{Nachbedingungen}
		#6
	\paragraph*{Fehler- / Ausnahmefälle}
		#7
}


\newcommand{\Picture}[3]%
{
	\begin{figure}[!ht]
		\centering
			\includegraphics*{#1}
		\caption{#2}
		\label{fig:#3}
	\end{figure}
}

\newcommand{\PictureWide}[3]%
{
	\begin{figure}[!ht]
		\centering
			\includegraphics*[width=\textwidth]{#1}
		\caption{#2}
		\label{fig:#3}
	\end{figure}
}

\newcommand{\QuoteMe}[1]{``#1''}

\newcommand{\frontpage}[1]%
{
	\thispagestyle{empty}
	
	\vspace{3cm}
	
	\begin{minipage}[H]{\textwidth}
	  \begin{center}
	    \bf
	    \Large
	    Mechatronik \\
	    \smallskip
	    \small
	    VAK 03-ME-806.02 \\
	    \vspace{3cm}
	  \end{center}
	\end{minipage}

	  \begin{figure}[h!]
	    \center{ \includegraphics[width=.9\textwidth]{images/Produkt.png} }
	  \end{figure}
	
	\begin{minipage}[H]{\textwidth}
	  \begin{center}
	    \vspace{1cm}
	    \bf
	    \LARGE Projektbericht: \\ Modulares Produktionssystem
	    \vfill
	  \end{center}
	\end{minipage}
	
	\vfill
	
	\begin{minipage}[H]{\textwidth}
	  \begin{center}
	    \sf
	    \begin{tabular}{lr}    
	      Jonathan Burke      & rouby@informatik.uni-bremen.de     \\
	      Tino Flenker        & flenkium@informatik.uni-bremen.de  \\           
	      Mathäus Wojt        & matindaw@informatik.uni-bremen.de  \\
	    \end{tabular}
	    \\ ~
	    \vspace{2cm}
	    \\
	    \it Abgabe: 01. August 2012 \\ ~
	  \end{center}
	\end{minipage}
	
	\newpage
}

